#!/bin/bash
docker stop imooc-mysql
docker rm imooc-mysql
current_dir=`pwd`
conf_path=${current_dir}/conf:/etc/mysql/conf.d
data_path=${current_dir}/data:/var/lib/mysql
logs_path=${current_dir}/logs:/var/log/mysql
docker run --name imooc-mysql -p 3306:3306 -v ${conf_path} -v ${data_path} -v ${logs_path} -e MYSQL_ROOT_PASSWORD=123456 -d mysql:5.6
